#include <string.h>

#include "filters.h"

#include "../../util/msg.h"

Matrix matrix_get_filter( char * name, int dim, char or, int comp) {
	Matrix filt;
	
	if( strcmp( name, "farid_simoncelli") == 0 ) {
		filt = matrix_filter_farid_simoncelli(dim, or, comp);
		return filt;
	}
	
	if( strcmp( name, "sobel") == 0 ) {
		filt = matrix_filter_sobel(dim, or, comp);
		return filt;
	}
	
	if( strcmp( name, "scharr") == 0 ) {
		filt = matrix_filter_sobel(dim, or, comp);
		return filt;
	}
	
	msg_error("Invalid filter name: %s",name);
	return filt;
}
